package com.xidian.zhiancloud.model.exam;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xidian.zhiancloud.qo.BaseReqQuery;

/**
 * 试题对象 t_exam_question
 * 
 * @author zhouweitao
 * @date 2021-03-05
 */
public class TExamQuestion extends BaseReqQuery
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 公司id */
    private Long companyId;

    /** 题目类型 */
    private String typeId;

    /** 0单选， 1多选， 2判断 */
    private String type;

    /** 题目名称 */
    private String name;

    /** 选择a */
    private String optionA;

    /** 选择b */
    private String optionB;

    /** 选择c */
    private String optionC;

    /** 选择d */
    private String optionD;

    /** 选择e */
    private String optionE;

    /** 选择f */
    private String optionF;

    /** 答案 */
    private String answer;

    /** 答案解析 */
    private String parse;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String typeName;
    
    private int  score;
    
    private String myanswer;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOptionA(String optionA) 
    {
        this.optionA = optionA;
    }

    public String getOptionA() 
    {
        return optionA;
    }
    public void setOptionB(String optionB) 
    {
        this.optionB = optionB;
    }

    public String getOptionB() 
    {
        return optionB;
    }
    public void setOptionC(String optionC) 
    {
        this.optionC = optionC;
    }

    public String getOptionC() 
    {
        return optionC;
    }
    public void setOptionD(String optionD) 
    {
        this.optionD = optionD;
    }

    public String getOptionD() 
    {
        return optionD;
    }
    public void setOptionE(String optionE) 
    {
        this.optionE = optionE;
    }

    public String getOptionE() 
    {
        return optionE;
    }
    public void setOptionF(String optionF) 
    {
        this.optionF = optionF;
    }

    public String getOptionF() 
    {
        return optionF;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setParse(String parse) 
    {
        this.parse = parse;
    }

    public String getParse() 
    {
        return parse;
    }

    public String getMyanswer() {
		return myanswer;
	}

	public void setMyanswer(String myanswer) {
		this.myanswer = myanswer;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public TExamQuestion(Long id, Long companyId, String typeId, String type, String name, String optionA,
			String optionB, String optionC, String optionD, String optionE, String optionF, String answer, String parse,
			Date createTime, Date updateTime, String typeName) {
		super();
		this.id = id;
		this.companyId = companyId;
		this.typeId = typeId;
		this.type = type;
		this.name = name;
		this.optionA = optionA;
		this.optionB = optionB;
		this.optionC = optionC;
		this.optionD = optionD;
		this.optionE = optionE;
		this.optionF = optionF;
		this.answer = answer;
		this.parse = parse;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.typeName = typeName;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("typeId", getTypeId())
            .append("type", getType())
            .append("name", getName())
            .append("optionA", getOptionA())
            .append("optionB", getOptionB())
            .append("optionC", getOptionC())
            .append("optionD", getOptionD())
            .append("optionE", getOptionE())
            .append("optionF", getOptionF())
            .append("answer", getAnswer())
            .append("parse", getParse())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
